using System;

namespace EFCoreEnterpriseDemo.Models
{
    public class AuditLog : BaseEntity
    {
        public string? TableName { get; set; }
        public string? Action { get; set; } // Create, Update, Delete, Restore
        public int? RecordId { get; set; }
        public string? OldValues { get; set; }
        public string? NewValues { get; set; }
        public string? ChangedColumns { get; set; }
        public string? UserId { get; set; }
        public string? UserName { get; set; }
        public DateTime Timestamp { get; set; } = DateTime.UtcNow;
        public string? IpAddress { get; set; }
        public string? UserAgent { get; set; }
    }
}
